package com.web.accumulate.entity;

import java.math.BigDecimal;
import java.time.LocalDate;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;
@ToString
@ApiModel
@Data
public class AccumulateTransaction {

	public static String ACCUMULATE_STATUS_NORMAL = "NOR";
	public static String ACCUMULATE_STATUS_COMPLETE = "DON";

	@ApiModelProperty("accumulatedNo")
	@Excel(name = "accumulatedNo",width = 15)
	private String accumulatedNo;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
	@ApiModelProperty("tradedate")
	@Excel(name = "tradeDate")
	private LocalDate tradeDate;

	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
	@ApiModelProperty("valueDate")
	private LocalDate valueDate;

	@ApiModelProperty("currency")
	@Excel(name = "currency")
	private String currency;

	@ApiModelProperty("amount")
	@Excel(name = "amount")
	private BigDecimal amount;

	@ApiModelProperty("hkdEquAmt")
	@Excel(name = "hkdEquAmt")
	private BigDecimal hkdEquAmt;

	@ApiModelProperty("status")
	@Excel(name = "status")
	private String status;

	@ApiModelProperty("counterparty")
	private String counterparty;

	@ApiModelProperty("bankCode")
	private String bankCode;

	@ApiModelProperty("buySellOption")
	private String buySellOption;

}
